﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using TiPort.TiEntityObjects;
using TI;

namespace TiEntityObject.Protocol
{
    public class ProtocolCommissionMember 
    {        
        public string ProtocolNumber { get; set; }

        [XmlElement("id")]
        public Int64 ID { get; set; }

        [XmlElement("name")]
        public string Name { get; set; }

        [XmlElement("present")]
        public int Present { get; set; }

        [XmlElement("role")]
        [LinkObjectAttribute(ChildFieldName = "roleId", IsPartialObject = false, IsDictionaryValue = true, ParentFieldName = "roleId")]
        public ProtocolMemberRole Role { get; set; }


        private int _roleId;

        public int roleId { get { 
            return _roleId; 
        } set 
        {
            _roleId = value; 
        } }

    }
}
